import request from '@/utils/request'

// 查询商品认证列表
export function listAuthentication(query) {
  return request({
    url: '/supply/authentication/list',
    method: 'get',
    params: query
  })
}

// 查询商品认证详细
export function getAuthentication(ID) {
  return request({
    url: '/supply/authentication/' + ID,
    method: 'get'
  })
}

// 新增商品认证
export function addAuthentication(data) {
  return request({
    url: '/supply/authentication',
    method: 'post',
    data: data
  })
}

// 修改商品认证
export function updateAuthentication(data) {
  return request({
    url: '/supply/authentication',
    method: 'put',
    data: data
  })
}

// 删除商品认证
export function delAuthentication(ID) {
  return request({
    url: '/supply/authentication/' + ID,
    method: 'delete'
  })
}
